package com.jorado.etl.config;

import com.jorado.zkconfig.AppSettings;

public final class RemoteSettings {

    private RemoteSettings() {
    }

    public static boolean word2vecManualTrain() {

        return AppSettings.getInstance().get("word2vecManualTrain", "0").equals("1");
    }

    public static boolean fastTextManualTrain() {

        return AppSettings.getInstance().get("fastTextManualTrain", "0").equals("1");
    }

    public static String word2vecIncrementTrainFile() {
        return AppSettings.getInstance().get("word2vecIncrementTrainFile", "/data/word2vec/incrementTrain.txt");
    }

    public static String word2vecTrainFile() {
        return AppSettings.getInstance().get("word2vecTrainFile", "/data/word2vec/train.txt");
    }

    public static String word2vecModelFile() {
        return AppSettings.getInstance().get("word2vecModelFile", "/data/word2vec/model.txt");
    }

    public static String word2vecDfsModelFile() {
        return AppSettings.getInstance().get("word2vecDfsModelFile", "/data/word2vec/model.txt");
    }

    public static String fasttextIncrementTrainFile() {
        return AppSettings.getInstance().get("fasttextIncrementTrainFile", "/data/fasttext/incrementTrain.txt");
    }

    public static String fasttextTrainFile() {
        return AppSettings.getInstance().get("fasttextTrainFile", "/data/fasttext/train.txt");
    }

    public static String fasttextModelFile() {
        return AppSettings.getInstance().get("fasttextModelFile", "/data/fasttext/model.txt");
    }

    public static String fasttextDfsModelFile() {
        return AppSettings.getInstance().get("fasttextDfsModelFile", "/data/fasttext/model.txt");
    }

    public static String campusPositionApi() {

        return AppSettings.getInstance().get("campusMessageApi", "");
    }


    public static String dfsHost() {
        return AppSettings.getInstance().get("dfsHost").toString();
    }
}
